widget-factory: Make the list on page 2 grow to the bottom
authorMatthias Clasen <mclasen@redhat.com>
Mon, 27 Apr 2020 00:35:51 +0000 (20:35 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 27 Apr 2020 00:35:51 +0000 (20:35 -0400)
Add a few more items to the list to make it fill up the space.

demos/widget-factory/widget-factory.ui

index 555cec8c08488bdfad93f5d6ed6fe9c1d1e2628b..a19339ea978e2c9f176eea0b5d57e88cfa040695 100644 (file)
@@ -1646,6 +1646,7 @@ microphone-sensitivity-medium-symbolic</property>
                                 <property name="hscrollbar-policy">never</property>
                                 <property name="min-content-height">200</property>
                                 <property name="hexpand">0</property>
+                                <property name="vexpand">1</property>
                                 <child>
                                   <object class="GtkListBox" id="listbox">
                                     <property name="selection-mode">none</property>
@@ -1845,6 +1846,46 @@ microphone-sensitivity-medium-symbolic</property>
                                         </child>
                                       </object>
                                     </child>
+                                    <child>
+                                      <object class="GtkListBoxRow" id="listboxrow7">
+                                        <child>
+                                          <object class="GtkBox">
+                                            <child>
+                                              <object class="GtkLabel">
+                                                <property name="label" translatable="yes">Row 7</property>
+                                                <property name="halign">start</property>
+                                                <property name="valign">center</property>
+                                                <property name="margin-start">6</property>
+                                                <property name="margin-end">6</property>
+                                                <property name="margin-top">6</property>
+                                                <property name="margin-bottom">6</property>
+                                                <property name="hexpand">1</property>
+                                              </object>
+                                            </child>
+                                          </object>
+                                        </child>
+                                      </object>
+                                    </child>
+                                    <child>
+                                      <object class="GtkListBoxRow" id="listboxrow8">
+                                        <child>
+                                          <object class="GtkBox">
+                                            <child>
+                                              <object class="GtkLabel">
+                                                <property name="label" translatable="yes">Row 8</property>
+                                                <property name="halign">start</property>
+                                                <property name="valign">center</property>
+                                                <property name="margin-start">6</property>
+                                                <property name="margin-end">6</property>
+                                                <property name="margin-top">6</property>
+                                                <property name="margin-bottom">6</property>
+                                                <property name="hexpand">1</property>
+                                              </object>
+                                            </child>
+                                          </object>
+                                        </child>
+                                      </object>
+                                    </child>
                                   </object>
                                 </child>
                               </object>
@@ -3278,6 +3319,8 @@ bad things might happen.</property>
       <widget name="listboxrow4"/>
       <widget name="listboxrow5"/>
       <widget name="listboxrow6"/>
+      <widget name="listboxrow7"/>
+      <widget name="listboxrow8"/>
     </widgets>
   </object>
   <object class="GtkSizeGroup">